<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link type="text/css" rel="stylesheet" href="css/reset.css" />
        <link type="text/css" rel="stylesheet" href="css/text.css" />
        <link type="text/css" rel="stylesheet" href="css/960.css" />
        <link type="text/css" rel="stylesheet" href="css/form.css" />
        <link type="text/css" rel="stylesheet" href="css/jquery.Jcrop.min.css" />
        <link type="text/css" rel="stylesheet" href="css/style.css" />
        <!--[if lt IE 8]>
        <link type="text/css" rel="stylesheet" href="css/style_ie7.css" />
        <![endif]-->
        <script type="text/javascript" src="js/jquery.min.js"></script>
        <script type="text/javascript" src="js/jquery.Jcrop.min.js"></script>
        <script type="text/javascript" src="js/myscript.js"></script>
    </head>
    <body>
        <div class="container_12">
            <div class="grid_12">
                <h1>Image</h1>
                <div class="cropImageWrapper" id="cropImageWrapper">
                    <img src="./images/products/image_09.jpg" id="cropTarget"/>
                </div>
                <h1>Parameters</h1>
            </div>
            
            <div class="grid_3">
                <h4>Width: </h4>
                <span id="width"></span>
            </div>

            <div class="grid_3">
                <h4>Height: </h4>
                <span id="height"></span>
            </div>

            <div class="grid_3">
                <h4>Top: </h4>
                <span id="top"></span>
            </div>

            <div class="grid_3">
                <h4>Left: </h4>
                <span id="left"></span>
            </div>
        </div>
        
        <script type="text/javascript">
            jQuery(function($){
                var jcrop_api;
                $('#cropTarget').Jcrop({
                    minSize: [220, 280],
                    aspectRatio: 220 / 280,
                    allowSelect: false,
                    onSelect: showCropParams}, function(){
                        jcrop_api = this;
                });
                jcrop_api.setSelect([0,0,220,280]);

            });

            function showCropParams(c) {
                $('#width').text(c.w);
                $('#height').text(c.h);
                $('#top').text(c.y);
                $('#left').text(c.x);
            }
        </script>
    </body>
</html>